﻿@model Hit
@{
    ViewBag.Title = "Index";
}

<h2>Stat: @Model.Stat.Name</h2>
<h3>Date: @Model.Date.ToString(DiaryHelper.DateFormat())</h3>

@foreach (HitComponent h in Model.HitComponents)
{
    <p>@(h.Quantity.Name): @h.Amount @h.Quantity.Unit.Abbreviation</p>
}
@Html.ActionLink("Delete", "Delete", "Hit", new { id = Model.Id }, null)
